package com.danskin.wechat.service;

import java.util.List;
import java.util.Map;

import com.danskin.wechat.entity.WxFansInfo;
import com.danskin.wechat.entity.example.WxFansInfoExample;

public interface WxFansInfoService {
	
	/**
	 * 根据用户openId获取粉丝信息
	 * @param OpenId
	 * @return
	 * @author makunsmac
	 */
	WxFansInfo getWxFansInfoByOpenId(String openId);
	
	/**
     * 新建粉丝
     * @param record
     * @return
     * @author makunsmac
     */
    int insertSelective(WxFansInfo record);

    /**
     * 查询符合条件的粉丝信息
     * @param example
     * @return
     * @author makunsmac
     */
    List<WxFansInfo> selectByExample(WxFansInfoExample example);
    
    /**
     * 查询符合条件的粉丝数
     * @param param
     * @return
     * @author makunsmac
     */
    Long selectWxFansInfoCount(WxFansInfo param);
    
    Map<String,Object> selectFanseInfoAndMobileByOpenId(Map<String,Object> map);

}
